package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ReturnsTableType implements ReturnsType {

    private int beginIndex;
    private int endIndex;
    private TableFunctionColumnList tableFunctionColumnList;

    public ReturnsTableType(int beginIndex, TableFunctionColumnList tableFunctionColumnList) {
        this.beginIndex = beginIndex;
        this.endIndex = tableFunctionColumnList.getBeginIndex();
        this.tableFunctionColumnList = tableFunctionColumnList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public TableFunctionColumnList getTableFunctionColumnList() {
        return tableFunctionColumnList;
    }

}
